MUSIC VOLUME

This command will return an integer value representing the volume at which the music is playing.

  Syntax
Return Integer=MUSIC VOLUME(Music Number)
  Parameters
Music Number
Integer
The music number

  Returns

This command will return an integer value representing the volume at which the music is playing

  Description

The default value is 100, as a percentage of the standard volume. A value of 50 means the music is playing at half the normal volume.

  Example Code
cls
load music "Dark Basic Professional\Media\Music\mp3\music space.mp3",1
play music 1
print "music volume ",music volume(1)
wait 1000*8
set music volume 1,200
print "music volume ",music volume(1)
do
loop
stop music 1
end
  See also

MUSIC Commands Menu
Index